
<template>
	<div class="header-hot" >
		<!-- 顶部标题 -->
		<div class="hot-top">
		    <span class="iconfont fire">&#xe6e7;</span>
			<label class="hot-til">本周热门榜单</label>
			<label class="hot-right">
				全部榜单
				<span class="iconfont ">&#xe637;</span>
			</label>
		</div>
		<!-- 列表 -->
		<ul>
			<li class="hot-list" v-for="(item,index) in HotList" :key="index">
			  <img :src="item.hotURL" />
			  <p class="p1">
				  <span>￥{{item.price}}</span><b class="sp">起</b>

			  </p>
			</li>

		</ul>
	</div>
</template>

<script>
	export default{
    props:['HotList'],
		data(){
			return{

			}
		}
	}
</script>

<style scoped>
	.header-hot{
		width: 100%;
		background-color: white;
		font-size: 0.28rem;
		margin-top: 0.4rem;
		padding-bottom: 1rem;
		overflow: hidden;
	}
	.hot-top{

		line-height: 1rem;
		padding-left: 0.2rem;
	}
	.fire{
		color: orangered !important;
		font-size: 0.48rem;
	}
	.hot-til{
		color: #212121;
		font-size: 0.4rem;
		font-weight: bold;

	}
	.hot-right{
		float: right;
		color: #CCCCCC;
		font-size: 0.32rem;
	/* 	display: inline-block; */
	    margin-right: 0.2rem;
	}
  .p1{
    text-align: center;
    margin-top: 0.1rem;
  }
  .sp{
    margin-left: 0.1rem;
  }
	.header-hot ul{
		width: 100%;
		white-space: nowrap;
		overflow: hidden;
		overflow-x: scroll;
		padding-bottom: 0.5rem;

	}
	.hot-list{
		width: 2rem;
		height: 2rem;
		padding: 0.2rem;
		display: inline-block;

	}
	.hot-list img{
		width: 100%;
		height: 100%;
	}
	.item-til{
		margin-top: 0.2rem;
		margin-bottom: 0.2rem;
		overflow: hidden;
		text-overflow: ellipsis;/* 文本符合 省勒号*/
		white-space: nowrap;
	}
</style>
